package 代理模式.只有代理的代码;

import 代理模式.没代理的代码.Girl;
import 代理模式.没代理的代码.Pursuit;

/**
 * @author zyl
 * @Description
 * @since 2024/1/2 17:39
 */

public class Proxy {
    Girl girl = new Girl("李梅");
    Pursuit pursuit = new Pursuit(girl);
    public void giveDolls(){
        System.out.println(this.girl.getName() + "你好！送你洋娃娃");
    }
    public void giveFlowers(){
        System.out.println(this.girl.getName() + "你好！送你鲜花");
    }
    public void giveChocolate(){
        System.out.println(this.girl.getName() + "你好！送你巧克力");
    }
}
